package com.msu.nava.util;

import com.msu.nava.modle.Medicine;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/*
处理数据的类
* */
public class Utility {
    public static boolean handleMedicineResponse(String response){
        try {
            JSONArray medicines = new JSONArray(response);
            for(int i=0;i<medicines.length();i++){
                JSONObject md = medicines.getJSONObject(i);
                System.out.println(md.toString());
            }
        } catch (JSONException e) {
            e.printStackTrace();
        }

        return false;
    }
}
